package com.tencent.wxcloudrun.service;

import com.tencent.wxcloudrun.model.MaryPost;
import com.tencent.wxcloudrun.model.Post;

import java.util.List;

/**
 * @author lichongbing
 * @version 1.0.0
 * @createdate 2023/2/17 00:35
 * @description: TODO
 */
public interface PostService {
    List<Post> list(int per_page,int page );
    Post getPostdetals(int id);


    int updateAvatarUrl(String avatarUrl, int postid);

    int updatelikeCont(int postid);

    List<MaryPost> getMaryPostsByOpenid(int per_page, int page, String openid);

    List<Post> listbycategoriesid(int per_page, int page,int categoryid);

    List<Post> listsearchresults(int per_page, int page, String search);

    int addpost(String postTitle, String postContent, String openid);

    List<Post> listbycategoriesidlocal(int per_page, int page, int categories);
}
